﻿/*
 * NetXtcpServer.h
 */
#ifndef __GDK_NETXTCPSERVER_H__
#define __GDK_NETXTCPSERVER_H__

#include <gdk/core/EventDispenser.h>
#include <gdk/net/Socket.h>
#include <gdk/net/XtcpServer.h>


namespace gdk
{

	class GDK_NET_EXPORT NetXtcpServer : public XtcpServer
	{
		DECLARE_CLASS_HANDLE(NetXtcpServer)
		DECLARE_CLASS_INSTANCE(NetXtcpServer)

	private:
		EventDispenser	_eventDispenser; //事件处理器

	private:
		NetXtcpServer(void);
		~NetXtcpServer(void);

	public:
		virtual void onAccept(void);

	public:
		__INLINE__ EventDispenser& getEventDispenser(void) { return _eventDispenser; }
		//-----------------------------------------------------------------------------
	};
	typedef NetXtcpServer::Handle NetXtcpServerPtr;



} //namespace gdk


#endif //__GDK_NETXTCPSERVER_H__
